package view
{
	import alternativa.engine3d.materials.SurfaceMaterial;
	import alternativa.engine3d.primitives.Plane;

	public class MiniCubeFace extends Plane
	{
		private var _material:SurfaceMaterial;
		public var id:String;
		
		public function MiniCubeFace(name:String, material:SurfaceMaterial)
		{
			this.id = name; 
			super(10, 10, 1, 1, true, false, false);
			init(material);
		}
		
		private function init(material:SurfaceMaterial):void
		{
			_material = material;
			alpha = 1;
		}
		
		public function set alpha(val:Number):void
		{
			_material.alpha = val;
			this.cloneMaterialToAllSurfaces(_material);
		}
		
	}
}